import Vue from 'vue'
import App from './App'
import store from './store'
import api from './utils/api.js'

//h5调试窗口
import VConsole from 'vconsole'
let vConsole = new VConsole()
Vue.use(vConsole)

Vue.config.productionTip = false
Vue.prototype.$store = store;
Vue.prototype.$api = api;
App.mpType = 'app'




Vue.prototype.current_url = function(){
	let url=window.location.protocol+"//"+window.location.host
	if(window.location.port){
		url=url+":"+window.location.port
	}
	return url
}

const app = new Vue({
    ...App,
	store
})
app.$mount()
